package com.lfz.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lfz.demo.entity.PopulationNews;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * @author lfz
 * @date 2025/3/5 18:15
 */
public interface PopulationNewsService extends IService<PopulationNews> {
    Page<PopulationNews> findByPage(Specification<PopulationNews> spec, Pageable pageable);

    List<PopulationNews> listNewsLimit3();

    List<PopulationNews> pastNewsListDesc();
}
